//
// Created by wze-zero on 2024/9/15 015.
//
#include <iostream>

using namespace std;

int main() {
    int num;
    while (cin >> num) {
        for (int i = 0; i < num + 1; ++i) {
            for (int j = 0; j < num - i; ++j) {
                cout << " ";
            }
            for (int j = num - i; j < num + 1; ++j) {
                cout << "*" << " ";
            }
            cout << endl;
        }
        for (int i = 0; i < num; ++i) {
            for (int j = num - i; j < num + 1; ++j) {
                cout << " ";
            }
            for (int j = 0; j < num - i; ++j) {
                cout << "*" << " ";
            }
            cout << endl;
        }
    }
    return 0;
}